<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;

include "function_net_dns.php";
$in_array["Name"]= $_POST['name'];
$in_array['ServerAddress']= $_POST['address'];
$in_array['NetMask'] = $_POST['mask'];
$in_array['Enabled'] = $_POST['valid'];

$d = new CDns();
$d->AppendXmlItem($in_array);

include_once "function_misc_log.php";
logger("Add", $in_array, "Dns");

include "function_web_misc.php";
PrintSuccessPageAndJump('net_dns_display.php');
//echo("<meta http-equiv='refresh'content=0;URL='net_dns_display.php'>");   

?>
